//
//  JEHLeadPageCollectionViewCell.m
//  SinaNews
//
//  Created by 蒋恩浩 on 15/12/21.
//  Copyright © 2015年 JEH. All rights reserved.
//

#import "JEHLeadPageCollectionViewCell.h"

@interface JEHLeadPageCollectionViewCell ()

@end

@implementation JEHLeadPageCollectionViewCell

- (void)dealloc {
    
    [_picture release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    
    self.picture = [[UIImageView alloc] initWithFrame:CGRectZero];
    [_picture release];
    [self addSubview:_picture];
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    [super applyLayoutAttributes:layoutAttributes];
    self.picture.frame = self.bounds;
}

@end















